/*
     private Integer imageId;
     private String objNo;
     private String objName;
     private String imageName;
     private String imageEngname;
     private String imageJapname;
     private String imgType;
     private String imgColor;
     private String cdlabel;
     private String imgFile;
     private String cdNo;
     private String photographer;
     private String provider;
     private String registerMan;
     private Date registerTime;
     private String regCReceiver;
     private Date regCTime;
     private String scanSuffix;
     private String scanMan;
     private Date scanTime;
     private String scanReceiver;
     private Date scanCTime;
     private String suffix;
     private String handler;
     private Date handleTime;
     private Date handleCTime;
     private Integer haveSmall;
     private Integer haveBigimage;
     private Integer isLivepicture;
     private String confirmMan;
     private Date confirmTime;
     private String confirmFlag;
     private String returnReceiver;
     private Date returnTime;
     private Integer mimgWidth;
     private Integer mimgHeight;
     private String keywords;
     private String classname;
     private String description;
     private Integer ispart;
     private Integer ggrsimage;
     private String note;
     private String descriptionUk;
     private Date lastUpdate;
     private String pathSmall;
     private String pathMiddle;
     private String imageSource;

 */
Ext.define('DCApp.model.Image', {
    extend: 'DCApp.model.Base',
    idProperty: 'imageId',
    fields: [
        {name: 'imageId', type: 'int'},
        {name: 'objNo'},
        {name: 'objName'},
        {name: 'imageName'},
        {name: 'imageEngname'},
        {name: 'imageJapname'},
        {name: 'imgType'},
        {name: 'imgColor'},
        {name: 'cdlabel'},
        {name: 'imgFile'},
        {name: 'cdNo'},
        {name: 'photographer'},
        {name: 'provider'},
        {name: 'registerMan'},
        
        {name: 'registerTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'regCReceiver'},
        {name: 'regCTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'scanSuffix'},
        {name: 'scanReceiver'},
        {name: 'scanCTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'suffix'},
        {name: 'handler'},
        {name: 'handleTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'handleCTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'haveSmall', type: 'int'},
        {name: 'haveBigimage', type: 'int'},
        {name: 'isLivepicture', type: 'int'},
        {name: 'confirmMan'},
        {name: 'confirmTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'confirmFlag'},
        {name: 'returnReceiver'},
        {name: 'returnTime', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'mimgWidth', type: 'int'},
        {name: 'mimgHeight', type: 'int'},
        {name: 'keywords'},
        {name: 'description'},
        {name: 'ispart', type: 'int'},
        {name: 'ggrsimage', type: 'int'},
        {name: 'note'},
        {name: 'descriptionUk'},
        {name: 'lastUpdate', type: 'date',  dateFormat: 'n/j h:ia'},
        {name: 'pathSmall'},
        {name: 'pathMiddle'},
        {name: 'imageSource'}
    ],
    rmap:{
		'imageSource':['影像利用','影像局部','外来影像'],
		'imgType':['照片' ,'电子文档','扫描'],
		'imgColor':['彩色' ,'黑白'],
		'isLivepicture':[0,1]
	},  
    formulas: {
        uri: function (get) {
            return get('imageId') % 5+'.jpg';
        }
    }
});
